package org.jeecg.modules.rental.mapper;


import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.rental.entity.RentalEBike;

import java.util.List;

/**
 * @Description: 租车车辆信息
 * @Author: sean
 * @Date: 2024-04-26
 * @Version: V1.0
 */
public interface RentalEBikeMapper extends BaseMapper<RentalEBike> {
//    Page<RentalEBike> selectDetailPage(@Param("page") Page<RentalEBike> page, @Param("ew") LambdaQueryWrapper ew);

    Page<RentalEBike> selectJoinPage(@Param("page") Page page, @Param(Constants.WRAPPER) Wrapper wrapper);

    Page<RentalEBike> selectManageJoinPage(@Param("page") Page page, @Param("param") RentalEBike req, Integer rentalStatus);

    Page<RentalEBike> selectNotRentedCars(@Param("page") Page page, @Param("param") RentalEBike req);

    List<RentalEBike> selectNotRentedCars(@Param("param") RentalEBike req);

    Page<RentalEBike> selectRentedCars(@Param("page") Page page, @Param("param") RentalEBike req);

    List<RentalEBike> selectRentedCars(@Param("param") RentalEBike req);

    Page<RentalEBike> selectManageAllJoinPage(@Param("page") Page page, @Param("param") RentalEBike req);

    List<RentalEBike> selectManageAllJoinPage(@Param("param") RentalEBike req);

    RentalEBike selectManageOnlyOne(@Param("param") RentalEBike req);

    @InterceptorIgnore(tenantLine = "true")
    List<RentalEBike> listNoTenant(@Param(Constants.WRAPPER) Wrapper<RentalEBike> queryWrapper);

    @InterceptorIgnore(tenantLine = "true")
    RentalEBike getByIdNoTenant(@Param("id") String id);

    RentalEBike selectShareEBike(@Param("accountId") Long accountId);

}
